<?php /* Smarty version Smarty-3.1.6, created on 2018-03-10 22:39:29
         compiled from "./Tpl/Admin\SysUser\index.html" */ ?>
<?php /*%%SmartyHeaderCode:72155aa3ee21e4e7a5-73457728%%*/if(!defined('SMARTY_DIR')) exit('no direct access allowed');
$_valid = $_smarty_tpl->decodeProperties(array (
  'file_dependency' => 
  array (
    '7a4cc5fb7850564b44be5b51f93f3ac727affce2' => 
    array (
      0 => './Tpl/Admin\\SysUser\\index.html',
      1 => 1494558134,
      2 => 'file',
    ),
  ),
  'nocache_hash' => '72155aa3ee21e4e7a5-73457728',
  'function' => 
  array (
  ),
  'variables' => 
  array (
    'module' => 0,
    'controller' => 0,
    'page' => 0,
    'limit' => 0,
    'status' => 0,
    'keywords' => 0,
    'vo' => 0,
    'rolelist' => 0,
  ),
  'has_nocache_code' => false,
  'version' => 'Smarty-3.1.6',
  'unifunc' => 'content_5aa3ee220063a',
),false); /*/%%SmartyHeaderCode%%*/?>
<?php if ($_valid && !is_callable('content_5aa3ee220063a')) {function content_5aa3ee220063a($_smarty_tpl) {?><?php echo $_smarty_tpl->getSubTemplate ("Public/top.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

</head>
<body>
<body>
<div id="warpper">
    <div class="content">
        <div class="location">管理员管理</div>
        <div class="ui-tab">
            <ul>
                <li class="tab-item selected"><a href="<?php echo U('SysUser/index');?>
" onclick="LayerShow();">管理员列表</a></li>
                <li class="tab-item last-item"><a href="<?php echo U('SysUser/add');?>
" onclick="LayerShow();">新增管理员</a></li>
            </ul>
        </div>
        <div class="filedSet" style="padding-bottom: 0;">
            <div class="search">
                <form action="" method="get" id="searchForm" class="ui-form reportForm" >
                	<input name="m" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['module']->value;?>
">
                    <input name="c" type="hidden" value="<?php echo $_smarty_tpl->tpl_vars['controller']->value;?>
">
                    <input name="a" type="hidden" value="search">
                    <input name="p" id="page" type="hidden" value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['page']->value)===null||$tmp==='' ? 1 : $tmp);?>
">
                    <input name="limit" id="limit" type="hidden" value="<?php echo (($tmp = @$_smarty_tpl->tpl_vars['limit']->value)===null||$tmp==='' ? 10 : $tmp);?>
">

                    <div class="ui-form-item inline-block">
                        <label class="ui-label">状态</label>
                        <select class="ui-select" name="status">
                        	<option value="" selected>全部</option>
                        	<option value="1" <?php if ($_smarty_tpl->tpl_vars['status']->value==1){?>selected<?php }?>>打开</option>
                        	<option value="0" <?php if ($_smarty_tpl->tpl_vars['status']->value===0){?>selected<?php }?>>关闭</option>
                        </select>
                    </div>
                    <div class="ui-form-item inline-block">
                        <label class="ui-label">关键字</label>
                        <input type="text" class="ui-text bg-text keyword" name="keywords" value="<?php echo $_smarty_tpl->tpl_vars['keywords']->value;?>
"/>
                    </div>
                    <div class="ui-form-item inline-block">
                        <button type="submit" class="ui-button" onclick="LayerShow();">查询</button>
                    </div>
                </form>
            </div>
        </div> 
        <!--表格内容-->
        <div class="mainGrid">
            <table class="ui-table ui-body">
                <thead>
                    <tr>
                        <th class="pct10">编号</th>
                        <th class="pct10">用户名</th>
                        <th class="pct10">登陆账号</th>
                        <th class="pct10">角色权限</th>
                        <th class="pct10">启用状态</th>
                        <th class="pct10 last-col">操作</th>
                    </tr>
                </thead>
                <tbody>
                <?php  $_smarty_tpl->tpl_vars["vo"] = new Smarty_Variable; $_smarty_tpl->tpl_vars["vo"]->_loop = false;
 $_from = ($_smarty_tpl->tpl_vars['list']->value); if (!is_array($_from) && !is_object($_from)) { settype($_from, 'array');}
foreach ($_from as $_smarty_tpl->tpl_vars["vo"]->key => $_smarty_tpl->tpl_vars["vo"]->value){
$_smarty_tpl->tpl_vars["vo"]->_loop = true;
?>
                    <tr>
                        <td><?php echo $_smarty_tpl->tpl_vars['vo']->value['id'];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['vo']->value['real_name'];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['vo']->value['username'];?>
</td>
                        <td><?php echo $_smarty_tpl->tpl_vars['rolelist']->value[$_smarty_tpl->tpl_vars['vo']->value['role_id']];?>
</td>
                        <td>
                        	<?php if ($_smarty_tpl->tpl_vars['vo']->value['status']==1){?>
                        		启用
                        	<?php }else{ ?>
                        		未启用
                        	<?php }?>
                        </td>
                        <td class="ta_l">
                            <div class="handler">
                                <a href="<?php echo u(('SysUser/edit?id=').($_smarty_tpl->tpl_vars['vo']->value['id']));?>
" onclick="LayerShow();">编辑</a>
                                <span class="sep">|</span>
                                <a href="<?php echo u(('SysUser/delete?id=').($_smarty_tpl->tpl_vars['vo']->value['id']));?>
" onclick="if(!confirm('您确认要删除此数据吗?删除后数据不能恢复!'))return false;">删除</a>
                            </div>
                        </td>
                    </tr>
                <?php } ?>
                </tbody>
            </table>
        </div>
        <!--描述：分页-->
        <div class="pagination">
	        <?php echo $_smarty_tpl->getSubTemplate ("Public/page.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>

	    </div>
    </div>
</div>
<?php echo $_smarty_tpl->getSubTemplate ("Public/foot.html", $_smarty_tpl->cache_id, $_smarty_tpl->compile_id, null, null, array(), 0);?>
<?php }} ?>